package com.basin.micro.auth.module.route.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basin_auth_route")
@UniqueKeys(fields = {"route_code", "route_name", "pattern"})
@RequireValFields(fields = {"rel_role_code", "rel_perm_code", "pattern", "route_code", "route_name"})
public class RouteEntity extends BaseEntity {
    private String relRoleCode;
    private String relPermCode;
    private String routeCode;
    private String routeName;
    private String pattern;
    private String routeDesc;
}
